﻿# $ docker rmi $(docker images | grep "none" | awk '{print $3}')
echo 'using docker-build  buildfilename  oldDockerImageId   dockerimageName'
docker build -t registry.cn-hangzhou.aliyuncs.com/zhangyunh/zyh:$3  -f  ./$1 .
#docker image list
#docker rmi $2 
$ docker rmi $(docker images | grep "$3" | awk '{print $3}')
docker image list
#docker tag $3  registry.cn-hangzhou.aliyuncs.com/zhangyunh/zyh:$3
docker push registry.cn-hangzhou.aliyuncs.com/zhangyunh/zyh:$3
